package com.ruoyi.bbsAdmin.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * token对象 bbs_token
 * 
 * @author ruoyi
 * @date 2023-08-05
 */
@TableName(value = "bbs_token")
public class Token extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String accesstoken;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String appid;

    /** $column.columnComment */
    private String id;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updatetime;

    public void setAccesstoken(String accesstoken) 
    {
        this.accesstoken = accesstoken;
    }

    public String getAccesstoken() 
    {
        return accesstoken;
    }
    public void setAppid(String appid) 
    {
        this.appid = appid;
    }

    public String getAppid() 
    {
        return appid;
    }
    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("accesstoken", getAccesstoken())
            .append("appid", getAppid())
            .append("id", getId())
            .append("updatetime", getUpdatetime())
            .append("createtime", getCreatetime())
            .toString();
    }


}
